package com.zzw.dao;

import com.zzw.model.TuKu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TuKuDao {
    @Insert("INSERT INTO a_tuku (name, img) values (#{name},#{img})")
    int insert(TuKu tuKu);

    @Select("SELECT id,name,img FROM a_tuku ORDER BY createTime DESC ")
    List<TuKu> select();
}
